package com.twentyOne.ClothingLand.service.impl;

import java.util.List;

import com.twentyOne.ClothingLand.dao.IShopDAO;
import com.twentyOne.ClothingLand.dao.impl.ShopDAO;
import com.twentyOne.ClothingLand.service.IShopService;
import com.twentyOne.ClothingLand.vo.Shop;

public class ShopService implements IShopService {
	
	private IShopDAO shopDAO = new ShopDAO();
	
	@Override
	public void addShop(Shop shop) {
		
		this.shopDAO.addShop(shop);
		
	}

	@Override
	public void deleteShop(Shop shop) {
		
		this.shopDAO.deleteShop(shop);
		
	}

	@Override
	public void modifyShop(Shop shop) {
		
		this.shopDAO.modifyShop(shop);
		
	}

	@Override
	public List<Shop> searchAllShop() {

		return this.shopDAO.searchAllShop();
		
	}

	@Override
	public Shop searchShopByID(int shopId) {
		
		return this.shopDAO.searchShopByID(shopId);
		
	}

}
